package com.situ.water_pay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.situ.water_Invoice.pojo.IvInvoice;
import com.situ.water_system.pojo.SyEmp;
import com.situ.water_user.pojo.UsUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author Angel
 * @since 2020-12-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "PyPay对象", description = "")
@TableName(value = "PY_Pay", resultMap = "PyPayMap")
public class PyPay implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "PayNo", type = IdType.ID_WORKER)
    private String PayNo;

    @TableField("UserNo")
    private String UserNo;

    @TableField(exist = false)
    private UsUser usUser;

    @TableField("PayType")
    private String PayType;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("PayDate")
    private Date PayDate;

    @TableField("Invoice")
    private String Invoice;

    @TableField(exist = false)
    private IvInvoice ivInvoice;

    @TableField("PayMoney")
    private Double PayMoney;

    @TableField("UseMoney")
    private Double UseMoney;

    @TableField("EmpID")
    private Integer EmpID;

    @TableField(exist = false)
    private SyEmp syEmp;


}
